<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #d1{
            margin-top:50px;
            margin-left: 50px;
            width: 100px;
            height: 100px;
            background-color: red;
            overflow: hidden;
        }
        #d1>div{
            width: 40px;
            height: 40px;
            background-color: blue;
            margin-left: 30px;
            margin-top: 30px;
        }

        #d2{
            margin-left: 150px;
            width: 50px;
            height: 50px;

            border:7px solid green;
            border-radius: 9px;

            padding-top: 50px;
            padding-left: 50px;
        }
    </style>
</head>
<body>

<div id="d1">
    <div></div>
</div>
<div id="d2">哈喽</div>

</body>
</html>